package com.gullmall.product.feign;

import com.gullmall.common.to.SkuDiscountTo;
import com.gullmall.common.to.SpuBoundsTo;
import com.gullmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//这个coupon是微服务name,方法上的coupon是路径名
@FeignClient(value = "coupon")
public interface CouponClient {
    /**
     * 保存
     */
    @PostMapping("coupon/spubounds/save")
    R saveSpuBonds(@RequestBody SpuBoundsTo spuBounds);

    @PostMapping("coupon/skufullreduction/saveinfo")
    R saveSkuDiscount(@RequestBody SkuDiscountTo skuDiscountTo);
}
